#ifndef __SERVICE_H__
#define __SERVICE_H__
#include "server.h"
#include "package.h"
#include "../c/call_py.h"
#include <sqlite3.h>

struct service{
    char buffer[BUFF_SIZE];  //缓存
    int size;                //缓存大小
    int ckt;                 //客户端套接字
    struct package p;        //请求包
    struct python_obj pobj;  //python对象
    sqlite3 *ppDb;           //数据库对象
};


void lpr(struct service *args);  //车牌识别服务
void in_parking(struct service *args); //入库
void out_parking(struct service *args);//计算费用并出库
void is_in(struct service *args);//计算是否入库


#endif